package erp.server.resource.mapper;

import erp.server.resource.pojo.entity.Resource;
import erp.server.resource.pojo.vo.ResourceDetailVO;
import erp.server.resource.pojo.vo.ResourceIndexVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResourceMapper {
    int insert(Resource Resource);

    List<ResourceIndexVO> selectForIndex();

    List<ResourceIndexVO> selectForIndexByOrgId(Long userId);

    void deleteById(Long id);

    ResourceDetailVO detailById(Long id);
}
